package com.cyk.mp.model.domain;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

@Data
@TableName(value = "user_info", autoResultMap = true)
public class User {

    @TableId(value = "id", type = IdType.AUTO) //value 默认是 id, type 默认是雪花算法，这里修改为自增长
    private Long id;
    @TableField("username")
    private String name;
    @TableField("is_married")
    private Boolean isMarried;
    private Integer age;
    //这里会自动驼峰转下划线
    private Date ctTime;
    private Date utTime;

}
